magicians = ['alice', 'david', 'carolina']
for item in magicians:
    print(item.title() + ', hello world')
    print(item.title())

for item in magicians:
    print(item)

message = 'Hello'
print(message + 'message')

for value in range(1, 5):
    print(value)

numbers = list(range(1, 6))
print(numbers)

even_number = list(range(2, 11, 2))
print(even_number)

demo_number = list(range(2, 22, 10))
print(demo_number)

squares = []
for value in range(1, 11):
    square = value ** 2
    squares.append(square)

print(squares)

digits = [1, 2, 3, 4, 5, 6, 7, 8]
print(min(digits))
print(max(digits))
print(sum(digits))

squares = [value**2 for value in range(1,11)]
print(squares)

for item in range(1, 21):
    print(item)

numbers = [item for item in  range(1, 1000001)]
# print(numbers)

odd_num = [item for item in range(1,21, 2)]
for n in odd_num:
    print(n)

num_3 = [item for item in range(3, 31, 3)]
for item in num_3:
    print(item)
print('------------------------')    
num_2 = [item for item in range(1, 11, item**3)]   
print(num_2)

players = ['charles', 'martina', 'michael', 'florence', 'eli']
print(players[0:3])
print(players[1:4])
print(players[:4])
print(players[1:])
print(players[-3:])

for p in players[-5:]:
    print(p.title())

my_foodds = ['pizza', 'falafel', 'carrot cake']
new_my_foods = my_foodds[:]
print(new_my_foods)

my_foodds.append("pear")
print(my_foodds)

new_my_foods.append('apple')
print(new_my_foods)

dimensions = (200, 50)
print(dimensions[0])
print(dimensions[1])
# dimensions[0] = 1
for item in dimensions:
    print(item)

foods = ('A', 'B', 'C', 'D')
for f in foods:
    print(f)